import { ReactElement, SetStateAction, useEffect, useRef, useState } from "react";
import { Button, Modal } from "antd";

// 主页-头部菜单组件-弹窗组件
interface homePageModalComponentInterface {
    width?: number
    change_cancel: Function
    contentComponent: ReactElement
}
const HomePage_ModalComponent: React.FC<homePageModalComponentInterface> = (props) => {
    return (
            <Modal width={props.width??"fit-content"} open centered closable={false} footer={null} onCancel={() => props.change_cancel()}>
                {
                    props.contentComponent
                }
            </Modal>
    )
}


export default HomePage_ModalComponent